package net.comm.user.web.form;

import net.comm.page.PageCtr;

import org.apache.struts.action.*;

public class UserSysinfoForm extends ActionForm {

	private static final long serialVersionUID = 1L;
	private static final String KEY_SPLIT = "#,##,#,#,#";

	private String  QryOrderby;		//状态
	private String  Status;		//状态
	private String  Online;		//在线状态
	private String  Nick;
	private int  PicID;			//个人照片ID
	
	private int  	UserID;			//	用户ID
	private int  	Integral;		//	用户积分
	private int  	Level;			//	用户等级
	private double  Amt;			//	预存金额
	private double  Complete;		//	资料完成百分比
	private int  	Attach;			//	人气指数
	private int  	LinjuNum;		//	邻居数量
	private int  	FirendNum;		//	好友数
	private int  	BlogNum;		//	日志数量
	private int  	GroupNum;		//	加入群组数
	private int  	SendFoNum;		//	发贴数
	private int  	RepFoNum;		//	回帖数
	private int  	PartyNum;		//	参加活动次数
	private int  	AlbumNum;		//	相册数量
	private int  	PicNum;			//	照片数量
	private int  	NemailNum;		//新私信数
	private int  	InvitFrNum;		//好友请求数量
	private int  	ZhaohuNum;		//打招呼数量
	private int  	LiuyanNum;		//新留言数量
	private int  	PinlunNum;		//新评论数量
	private int  	HuifuNum;		//新回复数量
	private int  	JyqingNum;		//接受邀请数量
	private int  	CysqNum;		//成员申请数量
	private long  	Timestamp;		//排名顺序（日期/时间）
	private String 	Mtime;			//	最后修改时间
	
	public UserSysinfoForm() {
		super();
		// TODO Auto-generated constructor stub
		clear();
	}
	public void clear(){
		
		Status = "";		//状态
		Online = "";		//在线状态		
		Nick = "";
		PicID = 0;
		QryOrderby = "";
		
		UserID = 0;			//	用户ID
		Integral = 0;		//	用户积分
		Level = 0;			//	用户等级
		Amt = 0.0;			//	预存金额
		Complete = 0.0;		//	资料完成百分比
		Attach = 0;			//	人气指数
		LinjuNum = 0;		//	邻居数量
		FirendNum = 0;		//	好友数
		BlogNum = 0;		//	日志数量
		NemailNum = 0;		//	新邮件数
		GroupNum = 0;		//	加入群组数
		SendFoNum = 0;		//	发贴数
		RepFoNum = 0;		//	回帖数
		PartyNum = 0;		//	参加活动次数
		AlbumNum = 0;		//	相册数量
		PicNum = 0;			//	照片数量
		NemailNum = 0;		//新私信数
		InvitFrNum = 0;		//好友请求数量
		ZhaohuNum = 0;		//打招呼数量
		LiuyanNum = 0;		//新留言数量
		PinlunNum = 0;		//新评论数量
		HuifuNum = 0;		//新回复数量
		JyqingNum = 0;		//接受邀请数量
		CysqNum = 0;		//成员申请数量			
		Timestamp = 0;		//	排名顺序（日期/时间）
		Mtime = "";			//	最后修改时间	
	}



	private String action = "";
	

	/**
	 * 查询当前页主键值串
	 */
	private String key = "";

	/**
	 * 查询上上页主键值串
	 */
	private String lastKey = "";
	

	/**
	 * 分页控制对象
	 */
	private PageCtr page;
	



	public PageCtr getPage() {
		return page;
	}

	public void setPage(PageCtr page) {
		this.page = page;
	}
	
	/**
	 * @param key the key to set
	 */
	public void setKey(String key) {
		this.key = key;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String[] array) {
		if(key != null && key.trim().length() > 0) {
			key = "";
		}
		
		StringBuffer keyBuff = new StringBuffer();
		for (int i = 0; i < array.length; i++) 
		{
			/**
			 * 防止空字符串引起的split方法异常
			 */
			if(array[i] == null || array[i].length() == 0) {
				keyBuff.append(" ");
			} else {
				keyBuff.append(array[i]);
			}
			
			keyBuff.append(KEY_SPLIT);
		}
		
		key = keyBuff.toString();		
	}
	
	/**
	 * 获取lastKey值
	 * @return
	 */
	public String[] lastKey()
	{
		if(lastKey == null || lastKey.trim().length() == 0) {
			return null;
		}
		
		return lastKey.split(KEY_SPLIT);
	}
	
	public String getLastKey() {
		return lastKey;
	}

	public void setLastKey(String lastKey) {
		this.lastKey = lastKey;
	}	

	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}

	public static String getKEY_SPLIT() {
		return KEY_SPLIT;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}	

	public int getUserID() {
		return UserID;
	}
	public void setUserID(int userID) {
		UserID = userID;
	}
	public int getIntegral() {
		return Integral;
	}

	public int getLevel() {
		return Level;
	}

	public double getAmt() {
		return Amt;
	}

	public double getComplete() {
		return Complete;
	}

	public int getAttach() {
		return Attach;
	}

	public long getTimestamp() {
		return Timestamp;
	}

	public String getMtime() {
		return Mtime;
	}


	public void setIntegral(int integral) {
		Integral = integral;
	}

	public void setLevel(int level) {
		Level = level;
	}

	public void setAmt(double amt) {
		Amt = amt;
	}

	public void setComplete(double complete) {
		Complete = complete;
	}

	public void setAttach(int attach) {
		Attach = attach;
	}

	public void setTimestamp(long timestamp) {
		Timestamp = timestamp;
	}

	public void setMtime(String mtime) {
		Mtime = mtime;
	}
	public int getLinjuNum() {
		return LinjuNum;
	}
	public int getFirendNum() {
		return FirendNum;
	}
	public int getBlogNum() {
		return BlogNum;
	}
	public int getNemailNum() {
		return NemailNum;
	}
	public int getGroupNum() {
		return GroupNum;
	}
	public int getSendFoNum() {
		return SendFoNum;
	}
	public int getRepFoNum() {
		return RepFoNum;
	}
	public int getPartyNum() {
		return PartyNum;
	}
	public int getAlbumNum() {
		return AlbumNum;
	}
	public int getPicNum() {
		return PicNum;
	}
	public void setLinjuNum(int linjuNum) {
		LinjuNum = linjuNum;
	}
	public void setFirendNum(int firendNum) {
		FirendNum = firendNum;
	}
	public void setBlogNum(int blogNum) {
		BlogNum = blogNum;
	}
	public void setNemailNum(int nemailNum) {
		NemailNum = nemailNum;
	}
	public void setGroupNum(int groupNum) {
		GroupNum = groupNum;
	}
	public void setSendFoNum(int sendFoNum) {
		SendFoNum = sendFoNum;
	}
	public void setRepFoNum(int repFoNum) {
		RepFoNum = repFoNum;
	}
	public void setPartyNum(int partyNum) {
		PartyNum = partyNum;
	}
	public void setAlbumNum(int albumNum) {
		AlbumNum = albumNum;
	}
	public void setPicNum(int picNum) {
		PicNum = picNum;
	}
	public int getInvitFrNum() {
		return InvitFrNum;
	}
	public int getZhaohuNum() {
		return ZhaohuNum;
	}
	public int getLiuyanNum() {
		return LiuyanNum;
	}
	public int getPinlunNum() {
		return PinlunNum;
	}
	public int getHuifuNum() {
		return HuifuNum;
	}
	public int getJyqingNum() {
		return JyqingNum;
	}
	public int getCysqNum() {
		return CysqNum;
	}
	public void setInvitFrNum(int invitFrNum) {
		InvitFrNum = invitFrNum;
	}
	public void setZhaohuNum(int zhaohuNum) {
		ZhaohuNum = zhaohuNum;
	}
	public void setLiuyanNum(int liuyanNum) {
		LiuyanNum = liuyanNum;
	}
	public void setPinlunNum(int pinlunNum) {
		PinlunNum = pinlunNum;
	}
	public void setHuifuNum(int huifuNum) {
		HuifuNum = huifuNum;
	}
	public void setJyqingNum(int jyqingNum) {
		JyqingNum = jyqingNum;
	}
	public void setCysqNum(int cysqNum) {
		CysqNum = cysqNum;
	}
	public String getStatus() {
		return Status;
	}
	public String getOnline() {
		return Online;
	}
	public void setStatus(String status) {
		Status = status;
	}
	public void setOnline(String online) {
		Online = online;
	}
	public String getNick() {
		return Nick;
	}
	public void setNick(String nick) {
		Nick = nick;
	}
	public int getPicID() {
		return PicID;
	}
	public void setPicID(int picID) {
		PicID = picID;
	}
	public String getQryOrderby() {
		return QryOrderby;
	}
	public void setQryOrderby(String qryOrderby) {
		QryOrderby = qryOrderby;
	}

	
	
}